package com.xbongbong.pro.message.pojo.dto;/*/*/

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 *
 * @author 魏荣杰
 * @date 2019/6/11 9:43
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class ConsistencySyncRabbitMqDTO {
    /**
     * 公司id
     */
    @NotNull(message = "{dto.msg.consistencySyncRabbitMq.corpid.NotNull}")
    private String corpid;
    /**
     * 业务数据id
     */
    private Long dataId;
    /**
     * 更新的数据名称
     */
    private String name;
    /**
     * 更新用户数据时的，用户头像
     */
    private String avatar;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 用于更新产品数据时的产品规格
     */
    private String specification;
    /**
     * 用于跟新是否可见
     */
    private Integer visible;
    /**
     * 用于更新编号
     */
    private String serialNo;

    public ConsistencySyncRabbitMqDTO() {
    }

    /**
     * 用于更新 合同，机会
     */
    public ConsistencySyncRabbitMqDTO(String corpid, Long dataId, String name, String serialNo) {
        this.corpid = corpid;
        this.dataId = dataId;
        this.name = name;
        this.serialNo = serialNo;
    }

    /**
     * 用于更新 客户，联系人，合同，机会
     */
    public ConsistencySyncRabbitMqDTO(String corpid, Long dataId, String name) {
        this.corpid = corpid;
        this.dataId = dataId;
        this.name = name;
    }

    public ConsistencySyncRabbitMqDTO(String corpid, Long dataId, String name, String avatar, String specification, String serialNo) {
        this.corpid = corpid;
        this.dataId = dataId;
        this.name = name;
        this.avatar = avatar;
        this.specification = specification;
        this.serialNo = serialNo;
    }

    public ConsistencySyncRabbitMqDTO(String corpid, String name, String avatar, String userId) {
        this.corpid = corpid;
        this.name = name;
        this.avatar = avatar;
        this.userId = userId;
    }

    public ConsistencySyncRabbitMqDTO(String corpid, Long dataId, Integer visible) {
        this.corpid = corpid;
        this.dataId = dataId;
        this.visible =visible;
    }
}
